<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Demo页面</title>
<style type="text/css">
select {width: 150px;}
</style>
<script src="../lib/jquery-1.4.min.js" type="text/javascript"></script>
<script src="../jquery.actionform.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#showRB').click(function(){
		var list = new Array('1','2','3');
		$('input[name=rb]').disabled('2');
		alert($('input[name=rb]').disabled());
	});

	$('input[type=button]').click(function(){
		var id = $(this).attr('id');
		if(id=='r1'){$('input[name=rb]').radio('2')}
		else if(id=='s1'){alert($('#selc').select());}
		else if(id=='s2'){$('#selc').select('2');}
		else if(id=='s3'){alert($('#selc').sltTxt());}
		else if(id=='s4'){alert($('#selc').optsSize());}
		else if(id=='s5'){$('#selc').addOpt('myval','8',2);}
		else if(id=='s6'){alert($('#selc').sltValAry());}
		else if(id=='s7'){$('#selc').empSelect();}
		else if(id=='s8'){alert($('#selc').sltIndex());}
		else if(id=='s9'){alert($('#selc').isExistVal('3'));}
		else if(id=='s10'){alert($('#selc').isExistVal(new Array('3','2')));}
		else if(id=='s11'){$('#selc').delOpt('2');}
		else if(id=='s12'){$('#selc').altOptTxt('3','Hello World');}
		else if(id=='s13'){$('#selc').copy('tad');}
	});
});
</script>
</head>
<body>
Drop List
<fieldset><br>
	<select id="selc">
		<option value="1">值1</option>
		<option value="2">值2</option>
		<option value="3">值3</option>
		<option value="4">值4</option>
		<option value="5">值5</option>
		<option value="6">值6</option>
	</select>
	
	<select id="tad"></select>
	<br>
	
<input type="button" value="获取值" id="s1">
<input type="button" value="设置值为2" id="s2">
<input type="button" value="获取选中文本" id="s3">
<input type="button" value="下拉列表的个数" id="s4">
<input type="button" value="添加项('myval',8)" id="s5">
<input type="button" value="获取全部值" id="s6">
<input type="button" value="清空全部" id="s7"><br>
<input type="button" value="当前选中为第几项" id="s8">
<input type="button" value="当前列表是否有值为3的项目" id="s9">
<input type="button" value="有值2,3的项目" id="s10">
<input type="button" value="删除值为2的项" id="s11">
<input type="button" value="修改选项3的文本" id="s12">
<input type="button" value="复制Select" id="s13">
</body>
</html>